package com.jky.stmall.front.service;

import com.jky.stmall.front.entity.Cart;

import java.util.List;

public interface CartService {
    int add(Cart cart) throws Exception;
    int remove(Integer id,Integer userId) throws Exception;
    int edit(Cart cart, Integer userId) throws Exception;
    List<Cart> getByUserId(Integer userId);
    //根据购物车的id查找 详细信息
    List<Cart> getByIds(Integer[] cartIds, Integer userid) throws Exception;
}
